.PHONY:all
all:tcpclient tcpserver
tcpclient:TcpClient.cc
	g++ -o $@ $^ -std=c++17 -ljsoncpp #-static -lpthread 
tcpserver:Tcpserver.cc
	g++ -o $@ $^ -std=c++17 -ljsoncpp  -lpthread 


.PHONY:output
output:
	@mkdir output
	@mkdir -p output/bin
	@mkdir -p output/conf
	@mkdir -p output/log
	@cp tcpserver output/bin
	@cp tcpclient output/bin
	@cp test.conf output/bin

.PHONY:clean
clean:
	rm -f tcpclient tcpserver